package com.lemeng.service;

import com.lemeng.entity.PageResult;
import com.lemeng.pojo.Admin;

import java.util.List;
import java.util.Map;

public interface AdminService {

    public List<Admin> findAll();

    public PageResult<Admin> findPage(Integer page, Integer size);

    public List<Admin> findList(Map<String, Object> serchMap);

    public PageResult<Admin> findPage(Integer page, Integer size, Map<String, Object> serchMap);

    public Admin findById(Integer id);

    void add(Admin admin);

    void update(Admin admin);

    void delete(Integer id);

    void addImgItem(Admin admin);

    void removeImageItems(Long id, Long uid);

    void moveAdmin(Long newId, Long oldId, Long uid);
}
